package com.sy.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sy.CourseService;
import com.sy.mapper.CourseMapper;
import com.sy.pojo.Course;
import com.sy.vo.CourseIndexVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements CourseService {

    @Autowired
    private CourseMapper courseMapper;

    // 用户端主页课程查询
    @Override
    public List<CourseIndexVO> findAllSales() {
        List<CourseIndexVO> courseList = courseMapper.findAllSales();
        return courseList;
    }
}
